package com.wl.dao;

import com.wl.utils.PageUtil;
import com.wl.vo.UserAccount;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wl.model.User;

import java.util.List;

public interface UserDao extends BaseMapper<User>{
	
	User findById(@Param("userCode") String code,@Param("userPwd") String pwd);
	
	Integer updateUser(@Param("userName")String userName, @Param("userCode")String userCode);

    List<UserAccount> userAccountList(@Param("page") Integer page,@Param("pageSize") Integer pageSize);

    User getUser(@Param("userId") long userId);

    List<User> getLimitUser(PageUtil pageUtil);

    Integer getCountUser();

    List<User> findByUser(User user);


}
